/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 头部 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #003366;
    color: white;
    height: 100px;
    padding: 0 50px;
}

header .logo img {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #0055aa;
    border-radius: 4px;
}

/* 主横幅 */
.banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slide 15s infinite;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    border-radius: 5px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control:hover {
    background: rgba(0,0,0,0.7);
}

@keyframes slide {
    0% { transform: translateX(0%); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0%); }
}

/* 主要内容区 */
main {
    display: flex;
    padding: 20px 50px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar {
    width: 25%;
    padding: 20px;
    background-color: #eaeaea;
    border-radius: 5px;
}

.sidebar.left {
    margin-right: 20px;
}

.sidebar.right {
    margin-left: 20px;
}

.sidebar h2, .content h2, footer h2 {
    margin-bottom: 15px;
    color: #003366;
}

.sidebar ul, .sitemap ul, .links ul {
    list-style: none;
}

.sidebar ul li, .sitemap ul li, .links ul li {
    margin-bottom: 10px;
}

.sidebar ul li a, .sitemap ul li a, .links ul li a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar ul li a:hover, .sitemap ul li a:hover, .links ul li a:hover {
    color: #0055aa;
}

.content {
    width: 50%;
    padding: 20px;
}

.content h2 {
    margin-bottom: 15px;
    color: #003366;
}

.news-module article, .events, .research {
    margin-bottom: 20px;
}

.news-module article h3 {
    margin-bottom: 5px;
    color: #0055aa;
}

.news-module article time {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.events ul, .research ul {
    list-style: disc inside;
}

.faculty, .resources, .social-media {
    margin-bottom: 20px;
}

.faculty-member {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.faculty-member img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.faculty-member a {
    color: #003366;
    text-decoration: none;
}

.faculty-member a:hover {
    color: #0055aa;
}

.resources ul, .links ul {
    list-style: none;
}

.resources ul li, .links ul li {
    margin-bottom: 10px;
}

.resources ul li a, .links ul li a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s;
}

.resources ul li a:hover, .links ul li a:hover {
    color: #0055aa;
}

.social-media a {
    margin-right: 10px;
}

.social-media img {
    width: 32px;
    height: 32px;
}

/* 底部 */
footer {
    background-color: #333333;
    color: white;
    padding: 20px 50px;
    margin-top: 20px;
    border-radius: 5px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-content section, .footer-content nav {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-content h2 {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-content p, .footer-content a {
    color: #ffffff;
}

.footer-content a {
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        height: auto;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }

    main {
        flex-direction: column;
        padding: 20px;
    }

    .sidebar, .content {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .carousel {
        width: 300%;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 200px;
    }

    header .logo img {
        height: 60px;
    }

    nav ul li a {
        padding: 8px 10px;
    }
}